package com.maixun.lib_business_college.qa.new_qa

import com.maixun.lib_business_college.base.QABaseModelImpl
import com.maixun.lib_business_college.entity.QABeen
import com.maixun.lib_network.entity.NetBaseEntity
import com.maixun.lib_network.entity.NetBaseListBeen
import io.reactivex.Observer

/**
 * @author：Lmoumou
 * @date：2020/11/4
 */
class NewQAModelImpl : QABaseModelImpl(), NewQAContract.Model {
    override fun mQADataList(
        observer: Observer<NetBaseEntity<NetBaseListBeen<QABeen>>>,
        descCode: Int?,
        typeId: String?,
        title: String?,
        current: Int
    ) {
        apiService.qaDataList(descCode, typeId, title, current).apply {
            mNetWork(observer, this)
        }
    }

}